@(field: Field, label: String = "CHANGEME", checkboxMap: Map[String, Boolean], help:String = "")

@**************************************************************************
* Generate input according twitter bootsrap rules                         *
* Taken from: http://ics-software-engineering.github.io/play-example-form *
**************************************************************************@

<div class="form-group @if(field.hasErrors) {has-error}">
  <label class="col-sm-2 control-label" for="@field.id">@label</label>
  <div class="col-sm-10" id="@field.id">
    @for((checkboxName, isChecked) <- checkboxMap) {
      <label class="checkbox-inline">
        <input
          type="checkbox"
          name="@(field.name + "[]")"
          id="@checkboxName"
          value="@checkboxName"
          @if(isChecked) {checked}>
        @checkboxName
      </label>
    }
    <span class="help-block">@help</span>
    <span class="help-block">@{field.error.map { error => error.message }}</span>
  </div>
</div>
